<?php
use yii\helpers\Url;
$css=<<<CSS
    .container{
        width:90% !important;
    }
    
CSS;

$this->registerCss($css);

?>
<div class="col-md-6">
<table class="table table-bordered">
    <tbody>
    	<tr><th>type</th><th>is_payed</th><th>结果</th></tr>
        <tr><td>1，5</td><td>--</td><td>资信未提交；</td></tr>
        <tr><td>6</td><td>--</td><td>资信未提交；</td></tr>
        <tr><td>7</td><td>5</td><td>通过未申请</td></tr>
        <tr><td>7</td><td>6</td><td>借款申请中</td></tr>
        <tr><td>8</td><td>--</td><td>资信拒绝</td></tr>
        <tr><td>9 ，12 借款中  </td><td>is_payed 1首借  2续借  3首借展期 4续借展期；</td><td>--</td></tr>
        <tr><td>11，13逾期中   </td><td>is_payed 1首借  2续借；</td> <td></td></tr>
        <tr><td>10 已还款； </td><td> is_payed  7  借款申请中（续借）；</td><td>--</td></tr>
    </tbody>
</table>
</div>

	<div class="col-md-12">
		
		    <div class="panel panel-primary">
        <div class="panel-body">
            <table class="table table-bordered">

            <tbody>
                <?php 
                    if (!empty($users)):
                    foreach ($users as $key => $item):
                ?>
                <tr>
                    <th>用户id</th><td><?= $item['id']?></td>
                    <th>del_status</th><td><?= $item['del_status']?></td>
                    <th>用户名字</th><td><?= $item['id']?></td>
                    <th>用户电话</th><td><?= $item['phone']?></td>
                    <th>注册时间</th><td><?= date('Y-m-d H:i:s',$item['s_create_time'])?></td>
                    <th>type<br/>is_payed</th><td><?= $item['type'] .'<br/>'.$item['is_payed'] ?></td>
                    <th>商户id</th><td><?= $item['admin_id']?></td>
                    <th>商户username</th><td><?= $item['username']?></td>
                    <th>操作</th><td>
                    	<a class="btn btn-primary btn-sm" target="_blank" href="<?= Url::toRoute(['default/show', 'admin_id' => $item['admin_id']])?>">商户信息</a>
                    </td>
                </tr>
                <tr>
                    <th>ruletype</th><td><?= $item['ruletype']?></td>
                    <th>是否是自动审核</th><td><?= $item['is_auto_examine']?></td>
                  
                </tr>
                 <tr>
                 	<th colspan="2">运营商相关</th>
                    <th>yun_type</th><td><?= $item['yun_type']?></td>
                    <th>yun_token</th><td><?= $item['yun_token']?></td>
                    <th>big_status</th><td><?= $item['big_status']?></td>
                </tr>
                <tr>
                	<td colspan="18"><hr/></td>
                </tr>
                <?php
                    endforeach;
                    endif;
                ?>
            </tbody>
            </table>
        </div>
    </div>
		
		
	</div>